package com.koron.housing.info.bean.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.koron.housing.info.bean.po.HousingInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author jzp
 * @since 2022/3/15
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "房源台账列表页信息", description = "HousingInfoVO")
public class HousingInfoVO extends HousingInfo {
    @ExcelProperty(value = "当前租户", index = 10)
    @ApiModelProperty("当前租户")
    private String currUsername;

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "租赁合同开始日期", index = 11)
    @ApiModelProperty("租赁合同开始日期")
    private Date leaseStartTime;

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "租赁合同结束日期", index = 12)
    @ApiModelProperty("租赁合同结束日期")
    private Date leaseEndTime;

}
